package com.tonggedata.dataapi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.NoArgsConstructor;

/**
 * api业务分组表
 *
 * @author tonggedata
 * @date 2022-06-19 12:59:36
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "`api_group`" , autoResultMap = true)
public class ApiGroup extends Model<ApiGroup> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @TableField(value = "`id`" )
    private Long id;
    /**
     * 根目录:-1
     */
    @TableField(value = "`pid`" )
    private Integer pid;
    /**
     * name
     */
    @TableField(value = "`name`" )
    private String name;
    /**
     * 描述
     */
    @TableField(value = "`desc`" )
    private String desc;
    /**
     * 创建人
     */
    @TableField(value = "`create_user`" )
    private String createUser;
    /**
     * 更新人
     */
    @TableField(value = "`update_user`" )
    private String updateUser;
    /**
     * 创建时间
     */
    @TableField(value = "`create_time`" )
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(value = "`update_time`" )
    private Date updateTime;
    /**
     * 删除(0正常，1已删除)
     */
    @TableLogic
    @TableField(value = "`deleted`" )
    private Integer deleted;

}
